package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.SmsConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author youli.chen
 * @ProjectName xbb-pro
 * @Description:
 * @date 2019/1/11 9:56
 */
@Repository
@Mapper
public interface SmsConfigDao {
    Integer insert(SmsConfigEntity smsConfig);

    Integer update(SmsConfigEntity smsConfig);

    Integer deleteByKey(@Param("key") Long key);

    SmsConfigEntity getByKey (@Param("key") Long key);

    List<SmsConfigEntity> findEntitys(@Param("param")Map<String ,Object> param);

    Integer getEntitysCount(@Param("param")Map<String ,Object>  param);

    void updateBatch(@Param("list") List<SmsConfigEntity> list);
}
